/*
 * DummyQuery.h
 *
 *  Created on: Dec 13, 2009
 *      Author: jbarreneche
 */

#ifndef DUMMYQUERY_H_
#define DUMMYQUERY_H_

#include "QueryRoute.h"
#include "map/RoadSegment.h"

class DummyQuery: public QueryRoute {
public:
	DummyQuery(Map *map, RoadSegment* segment) :
		QueryRoute(map, segment->getRoad()->getName(), segment->getHeightFor(segment->getOrigin()), Distance) {
		safeCalculateRoute();
	}
	virtual ~DummyQuery() {}
	/* Devuelve la lista de los posibles puntos de destino */
	virtual util::LinkedList<MapPoint> finishPoints() { return util::LinkedList<MapPoint>(); }
protected:
	virtual void recalculateRoute() { throw OutOfReachException(); }
};

#endif /* DUMMYQUERY_H_ */
